import request from "@utils/request";

/**
 * 用户余额
 * @param umId
 */
export function getUserMoney(umId,pid) {

  return request.get("/evolve/user/giveUserRemaining", {umId,pid}, {login: false});
}
//余额明细
export function getBalanceList(umId,pageNo,pid) {
  return request.get("/evolve/user/giveUserRemainingMoney", {umId,pageNo,pid}, { login: false });
}
//提现记录
export function getGetMoneyList(umId,pageNo,pid) {
  return request.get("/evolve/user/giveUserOutMoney", {umId,pageNo,pid}, { login: false });
}
//提现
export function getMoney(urmtoUmId,authCode,urmtoMoney,createId) {
  return request.get("/evolve/user/apply", {urmtoUmId,authCode,urmtoMoney,createId}, { login: false });
}
//提交审核
export function submitAudit(poId,pumId,poShootMessage) {
  return request.get("/evolve/po/submitAudit", {poId,pumId,poShootMessage}, { login: false });
}
//用户实名认证
export function userRealNameOuth(umId,umName,umIdCard,captcha) {
  return request.get("/evolve/user/userAuthentication", {umId,umName,umIdCard,captcha}, { login: false });
}
/**
 * 获取微信用户信息
 */
export function getWXUserInfo(accessToken,openid) {
  return request.get("/wechat/wx_unify/userinfo", {accessToken,openid}, { login: false });
}
/**
 * 获取微信用户信息
 */
export function checkWXOpenId(openId,avatar,nickName) {
  return request.get("/wechat/wx_unify/checkOpenId", {openId,avatar,nickName}, { login: false });
}
/**
 * 根据用户id获取用户信息
 */
export function getUserInfo(umId) {
  return request.get("/wechat/wx_unify/giveUserManagerByUmId", {umId}, { login: false });
}

/**
 * 用户微信第一次登录绑定手机号
 */
export function wechatUserBindMobile(mobile,openId,captcha,avatar,nickName) {
  return request.get("/wechat/wx_unify/wechatBindMobile", {mobile,openId,captcha,avatar,nickName}, { login: false });
}
/**
 * 注册为工地管理员
 */
export function registerActivityLead(pumSmId,pumUid) {
  return request.get("/evolve/pum/registerActivityLead", {pumSmId,pumUid}, { login: false });
}
